import instance from '@/utils/request'
//登录
export function loginApi(data) {
  return instance({
    url: '/sys/login',
    method: 'post',
    data
  })
}
//获得员工信息
export function getUserInfo() {
  return instance({
    url: '/sys/profile',
    method: 'post'
  })
}
//登出
export function logout() {
  return instance({
    url: '/vue-admin-template/user/logout',
    method: 'post'
  })
}

//新增员工
export function addEmployApi(data){
  return instance({
    url:'/sys/user',
    method:'post',
    data
  })
}